<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            font-size: 20px;
            font-style: italic;
        }
        .p1{
            color: red;
        }
        #p2{
            color: aqua;
        }
        p{
            color: aquamarine;
            text-align: center;
        }
        img{
           
            border-top: 80px red solid;
            border-left: 50px blue dotted;
            border-bottom: 30px purple dashed;
            border-right: 20px aquamarine double;
            display: block;
            margin: auto;
            animation: img 3s ease;
        }
        @keyframes img{
            0%{
                padding: 100px;
                transform: rotate(180deg);
            }
            100%{
                padding: 0;
                transform: rotate(0deg);
            }
        }
        p[title=p]{
            color: bisque;
        }
        h1+p{
            color: blue;
        }
    </style>

</head>

<body> 
    <h1 style="text-align: center;font-size: 40px;">盒子模型</h1>
    <img src="../image/盒子.jpeg" alt="">
    <h1 style="text-align: center;font-size: 40px;">选择器</h1>
    <p>这是关系选择器</p>
    <p title="p">这是属性选择器</p>
    <p>这是全局选择器</p>
    <p class="p1">这是类选择器</p>
    <p id="p2">这是id选择器</p>
    <p>这是标签选择器</p>

</body>

</html>